<?php if (!defined('THINK_PATH')) exit();?><!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="utf-8">
    <title>填空组卷预览</title>
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta name="description" content="">
    <meta name="author" content="">
		<script type="text/javascript" src="__JS__/jshelper.js"></script> 
		<script type="text/JavaScript">
			function blanktedit(id,testid){
				window.location.href="__URL__/blanktedit/testid/"+testid+"/id/"+id;
			}
			function blanktdelete(id,testid){
				if (confirm("你确定要删除吗")==true) {
					//posthelper([["id",id],],'__URL__/blankdelete');
					postwith('__URL__/blanktdelete',{id:id,testid:testid});
				}
			}
			
			window.onload=show;
		</script>
		<script type="text/javascript" src="__JS__/jQuery/jquery.js"></script>
       	<script type="text/javascript" src="__JS__/jQuery/jquery.form.js"></script>
	</head>
	<body>	
		<!-- layout::Auth:header::0 -->
    	<div class="container-fluid">
     		<div class="row-fluid">
  			  <!-- layout::Auth:leftmenu::0 -->
              	 <div class="span8">
                    <div class="hero-unit">
                  	<h1>填空组卷预览</h1>
                    <p style="font-size:12px">当前位置：
                        <a href='__APP__/index/index' class="nowpositionhref">主页</a>>
                        <a href='__URL__/index' class="nowpositionhref">后台管理</a>>
                        <a href='__URL__/choose1' class="nowpositionhref">测试管理</a>>
                        <a href='__URL__/testdetail' class="nowpositionhref">试题管理</a>>
                        <a href='__URL__/testpackage/id/<?php echo ($testid); ?>' class="nowpositionhref">组卷</a>>
                        <a href='__URL__/blanktdetail1/id/<?php echo ($testid); ?>' class="nowpositionhref">填空组卷</a>>
                        <a href="">填空组卷预览</a>
                    </p>
      				</div>
			<!--显示题目-->
			<a href='__URL__/testpackage/id/<?php echo ($testid); ?>' class="btn btn-success" style="width:80px;">返回组卷</a>
				<table  width="100%"  class="table table-striped table-bordered table-condensed">
					<load href"__PUBLIC__/js/list_show.js">
					<input type='hidden' name='testid' value='<?php echo ($testid); ?>'>
                     <thead>
                    	<tr>
                        	<th style="width:5%">题号</th>
                            <th style="width:77%">题干</th>
                            <th style="width:8%">分值</th>
                            <th style="width:10%">操作</th>
                        </tr>
                    </thead>
					<tbody id="tab">
						<?php if(is_array($list)): $i = 0; $__LIST__ = $list;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$vo): ++$i;$mod = ($i % 2 )?><tr id="table_blank_show">
								<td ><?php echo ($vo["number"]); ?></td>
								<td ><?php echo ($vo["name"]); ?><br>
								<textarea name="text" style="width:300px;hight:50px;"></textarea></td>
								<td ><?php echo ($vo["score"]); ?></td>
								<td >
									<a href="javascript:blanktedit('<?php echo ($vo["id"]); ?>','<?php echo ($testid); ?>')">编辑</a>
									<a  href="javascript:blanktdelete('<?php echo ($vo["id"]); ?>','<?php echo ($testid); ?>')" >删除</a>
								</td>
                              </tr><?php endforeach; endif; else: echo "" ;endif; ?>
					</tbody>
				</table>
				<p class="navbar-text pull-right"><?php echo ($page); ?></p>
              </div>
		</div>
		</div>
	</body>
</html>